summaryrefslogtreecommitdiffstats
path: root/src/android/app/src/main/AndroidManifest.xml
blob: c37559b474b99a077b3ca02de057bbd78df99833 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-feature
        android:name="android.hardware.touchscreen"
        android:required="false"/>
    <uses-feature
        android:name="android.hardware.gamepad"
        android:required="false"/>

    <uses-feature android:glEsVersion="0x00030002" android:required="true" />

    <uses-feature android:name="android.hardware.opengles.aep" android:required="true" />

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />


    <application
        android:name="org.yuzu.yuzu_emu.YuzuApplication"
        android:label="@string/app_name"
        android:icon="@mipmap/ic_launcher"
        android:allowBackup="false"
        android:supportsRtl="true"
        android:isGame="true"
        android:banner="@mipmap/ic_launcher"
        android:extractNativeLibs="true"
        android:requestLegacyExternalStorage="true">

        <activity
            android:name="org.yuzu.yuzu_emu.ui.main.MainActivity"
            android:exported="true"
            android:theme="@style/Theme.Yuzu.Splash.Main"
            android:resizeableActivity="false">

            <!-- This intentfilter marks this Activity as the one that gets launched from Home screen. -->
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>

                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>

        <activity
            android:name="org.yuzu.yuzu_emu.features.settings.ui.SettingsActivity"
            android:configChanges="orientation|screenSize|uiMode"
            android:theme="@style/Theme.Yuzu.Main"
            android:label="@string/preferences_settings"/>

        <activity
            android:name="org.yuzu.yuzu_emu.activities.EmulationActivity"
            android:resizeableActivity="false"
            android:theme="@style/Theme.Yuzu.Main"
            android:launchMode="singleTop"
            android:screenOrientation="landscape"/>

        <service android:name="org.yuzu.yuzu_emu.utils.ForegroundService"/>

        <provider
            android:name="org.yuzu.yuzu_emu.model.GameProvider"
            android:authorities="${applicationId}.provider"
            android:enabled="true"
            android:exported="false">
        </provider>

        <provider
            android:name="androidx.core.content.FileProvider"
            android:authorities="${applicationId}.filesprovider"
            android:exported="false"
            android:grantUriPermissions="true">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/nnf_provider_paths" />
        </provider>

        <provider
            android:name=".features.DocumentProvider"
            android:authorities="${applicationId}.user"
            android:grantUriPermissions="true"
            android:exported="true"
            android:permission="android.permission.MANAGE_DOCUMENTS">
            <intent-filter>
                <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
            </intent-filter>
        </provider>

    </application>

</manifest>